{extend name="public:_base" /}

{block name="css"}
<style type="text/css">
    .table-bordered .text-l a {
        overflow: hidden;
        word-wrap: break-word;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
</style>
{/block}

{block name="js"}
<script type="text/javascript">
    $("[name='status']").find("[value='{$Think.get.status}']").attr("selected", true);
</script>
{/block}

{block name="main"}

<div class="user_conver">

    {include file="public:_right"}

    <!-- 考试结果 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            考试信息 <font>EXAM INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <form name="" method="get" action="">
                <div class="text-c">
                    <input type="text" name="title" placeholder="{:lang('title')}" style="width:250px" value="{$Think.get.title}" class="input-text">
                    <button name="" class="btn radius btn-success" type="submit"><i class="Hui-iconfont"></i> 搜标题</button>
                </div>
            </form>

            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="r">
                    <i class="glyphicon glyphicon-share-alt"></i>
                    {:lang('Total data')}：{$num}<strong></strong>
                </span>
            </div>

            <div class="mt-20 bk-table">
                <table class="table table-border table-bordered table-bg table-hover table-sort">
                    <thead>
                    <tr class="text-c">
                        <th width="10%">{:lang('Serial number')}</th>
                        <th width="50%">{:lang('title')}</th>
                        <th width="10%">考试详情</th>
                        <th width="10%">分数</th>
                        <th width="20%">{:lang('Create time')}</th>
                        <!--<th width="100">{:lang('operating')}</th>-->
                    </tr>
                    </thead>

                    <tbody>
                    {volist name="list" id="vo" empty="$_html_empty"}
                    <tr class="text-c va-m">
                        <td>
                            {$Think.get.page?(($Think.get.page-1)*$Think.config.paginate.list_rows+$i):($i)}
                        </td>

                        <td class="text-l">
                            <a href="{$Request.root.true}{$vo.url}" target="_blank" title="查看{$vo.title}">
                                {$vo.title}
                            </a>
                        </td>

                        <td>
                            {if condition="!is_null($vo.score)"}
                            <a href="{:url('Researchresultcopy/read',['id'=>$vo.id])}" target="_blank" title="查看{$vo.title}">
                                查看
                            </a>
                            {/if}

                        </td>
                        <td>
                            {if condition="is_null($vo.score)"}
                            暂未评分
                            {else}
                            {$vo.score}
                            {/if}
                        </td>
                        <td>
                            {$vo.create_time}
                        </td>
                        <!--<td class="td-manage">-->
                        <!--<a style="text-decoration:none" class="btn radius btn-xs btn-success"-->
                        <!--onClick="edit('编辑','','10001')"-->
                        <!--href="{:url(\''.\\think\\Request::instance()->controller().'/edit',['id'=>$vo.id])}"-->
                        <!--title="{:lang('edit')}">{:lang('edit')}</a>-->
                        <!--&lt;!&ndash;<a style="text-decoration:none" class="btn radius btn-xs btn-danger"&ndash;&gt;-->
                        <!--&lt;!&ndash;onClick="del(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')"&ndash;&gt;-->
                        <!--&lt;!&ndash;href="{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}"&ndash;&gt;-->
                        <!--&lt;!&ndash;title="{:lang('delete')}">{:lang('delete')}</a>&ndash;&gt;-->
                        <!--<a class="btn radius btn-xs btn-danger" href="javascript:;" onclick="del('{$vo.id}')" title="{:lang('delete')}">{:lang('delete')}</a>-->
                        <!--</td>-->
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>

            {$list->render()}

        </div>
        <!-- #内容 -->

    </div>
    <!-- #考试结果 -->

</div>

{/block}